﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HL7v_2x
{
    public enum HL7FieldName
    {
        /// <summary>
        /// MSH 
        /// </summary>
        FieldSeparator_MSH = 00001,  
        EncodingCharacters_MSH = 00002,
        SendingApplication_MSH = 00003,
        SendingFacility_MSH = 00004,
        ReceivingFacility_MSH = 00005,
        ReceivingApplication_MSH = 00006,
        DateTimeofMessage_MSH = 00007,
        Security_MSH = 00008,
        MessageType_MSH = 00009,
        MessageControlID_MSH = 00010,
        ProcessingID_MSH = 00011,
        VersionID_MSH = 00012,
        SequenceNumber_MSH = 00013,
        ContinuationPointer_MSH = 00014,
        AcceptAknowledgmentType_MSH = 00015,
        ApplicationAknowledgmentType_MSH = 00016,
        CountryCode_MSH=00017,
        CharacterSet_MSH=00692,
        PrincipalLanguageofMessage_MSH=00693,
        AlternateCharacterSetHandlingScheme_MSH=01317,
        MessageProfileIdentifier_MSH=01598,
        /// <summary>
        /// EVN 
        /// </summary>
        TypecodeEvent_EVN = 00099,
        RecordedDateTime_EVN = 00100,
        DateTimePlannedEvent_EVN = 00101,
        EventReasonCode_EVN = 00102,        
        OperatorID_EVN = 00103,
        EventOcurred_EVN = 01278,
        EventFacility_EVN = 01534,
        /// <summary>
        /// PID 
        /// </summary>
        SetId_PID = 00104,
        Patient_id_PID = 00105,
        PatientIdentifierList_PID = 00106,
        AlternatePatientID_PID = 00107,
        PatientName_PID = 00108,
        MotherMaidenName_PID_NK1 = 00109,
        DateTimeofBirth_PID_NK1 = 00110,
        AdministrativeSex_PID_NK1 = 00111,
        PatientAlias_PID = 00112,
        Race_PID_NK1 = 00113,
        PatientAddress_PID = 00114,
        CountyCode_PID = 00115,
        PhoneNumberHouse_PID = 00116,
        PhoneNumberBusiness_PID = 00117,
        PrimaryLanguage_PID_NK1 = 00118,
        MaritalStatus_PID_NK1 = 00119,
        Religion_PID_NK1 = 00120,
        PatientAccountNumber_PID = 00121,
        SSNNumberPatient_PID = 00122,
        DriverLicenseNumberPatient_PID = 00123,
        MotherIdentifier_PID=00124,
        EthnicGroup_PID_NK1=00125,
        BirthPlace_PID=00126,
        MultipleBirthIndicator_PID=00127,
        BirthOrder_PID=00128,
        Citizenship_PID_NK1=00129,
        VeteransMilitaryStatus_PID=00130,
        Nationality_PID_NK1=00739,
        PatientDeathDateandTime_PID=00740,
        PatientDeathIndicator_PID=00741,
        IdentityUnknownIndicator_PID=01535,
        IdentityReliabilityCode_PID=01536,
        LastUpdateDateTime_PID=01537,
        LastUpdateFacility_PID=01538,
        SpeciesCode_PID=01539,
        BreedCode_PID=01540,
        Strain_PID=01541,
        ProductionClassCode_PID=01542,
        /// <summary>
        /// PV1 
        /// </summary>
        SetId_PV1 = 00131,        
        PatientClass_PV1 = 00132,
        AssignedPatientLocation_PV1 = 00133,
        AdmisionType_PV1 = 00134,
        PreadmitNumber_PV1 = 00135,
        PriodPatientLocation_PV1=00136,
        AttendingDoctor_PV1 = 00137,
        ReferingDoctor_PV1 = 00138,
        ConsultingDoctor_PV1 = 00139,
        HospitalService_PV1 = 00140,
        TemporaryLocation_PV1 = 00141,
        PreadmitTestIndicator_PV1 = 00142,
        ReAdmissionIndicator_PV1 = 00143,
        AdmitSource_PV1 = 00144,
        AmbulatoryStatus_PV1_NK1 = 00145,
        VIPIndicator_PV1 = 00146,
        AdmittingDoctor_PV1 = 00147,
        PatientType_PV1 = 00148,
        VisitNumber_PV1 = 00149,
        FinancialClass_PV1 = 00150,
        ChargePriceIndicator_PV1 = 00151,
        CourtesyCode_PV1 = 00152,
        CreditRating_PV1 = 00153,
        ContractCode_PV1 = 00154,
        ContractEffectiveDate_PV1 = 00155,
        ContractAmount_PV1 = 00156,
        ContractPeriod_PV1 = 00157,
        InterestCode_PV1 = 00158,
        TransfertoBadDebtCode_PV1 = 00159,
        TransfertoBadDebtDate_PV1 = 00160,
        BadDebtAgencyCode_PV1 = 00161,
        BadDebtTransferAmount_PV1 = 00162,
        BadDebtRecoveryAmount_PV1 = 00163,
        DeleteAccountIndicator_PV1 = 00164,
        DeleteAccountDate_PV1=00165,
        DischargeDisposition_PV1 = 00166,
        DischargedtoLocation_PV1 = 00167,
        DietType_PV1 = 00168,
        ServicingFacility_PV1=00169,
        BedStatus_PV1 = 00170,
        AccountStatus_PV1 = 00171,
        PendingLocation_PV1 = 00172,
        PriorTemporaryLocation_PV1 = 00173,
        AdmitDate_Time_PV1 = 00174,
        DischargeDateTime_PV1 = 00175,
        CurrentPatientBalance_PV1 = 00176,
        TotalCharges_PV1 = 00177,
        TotalAdjustments_PV1 = 00178,
        TotalPayments_PV1 = 00179,
        AlternateVisitID_PV1 = 00180,
        VisitIndicator_PV1 = 01226,
        OtherHealthcareProvider_PV1 = 01274,
        /// <summary>
        /// NK1 
        /// </summary>
        SetID_NK1=00190,
        Name_NK1=00191,
        Relationship_NK1=00192,
        Address_NK1=00193,
        PhoneNumber_NK1=00194,
        BusinessPhoneNumber_NK1=00195,
        ContactRole_NK1=00196,
        StartDate_NK1=00197,
        EndDate_NK1=00198,
        NextofKinAssociatedPartiesJobTitle_NK1=00199,
        NextofKinAssociatedPartiesJobCodeClass_NK1=00200,
        NextofKinAssociatedPartiesEmployeeNumber_NK1=00201,
        OrganizationName_NK1=00202,
        //MaritalStatus_PID_NK1=00119,
        //AdministrativeSex_PID_NK1=00111,
        //DateTimeofBirth_PID_NK1=00110,
        LivingDependency_NK1=00755,
        //AmbulatoryStatus_PV1_NK1=00145,
        //Citizenship_PID_NK1=00129,
        //PrimaryLanguage_PID_NK1=00118,
        LivingArrangement_NK1=00742,
        PublicityCode_NK1=00743,
        ProtectionIndicator_NK1=00744,
        StudentIndicator_NK1=00745,
        //Religion_PID_NK1=00120,
        //MotherMaidenName_PID_NK1=00109,
        //Nationality_PID_NK1=00739,
        //EthnicGroup_PID_NK1=00125,
        ContactReason_NK1=00747,
        ContactPersonName_NK1=00748,
        ContactPersonTelephoneNumber_NK1=00749,
        ContactPersonAddress_NK1=00750,
        NextofKinAssociatedPartyIdentifiers_NK1=00751,
        JobStatus_NK1=00752,
        //Race_PID_NK1=00113,
        //Handicap_IN1_NK1=00753,
        ContactPersonSocialSecurityNumber_NK1=00754,


        /// <summary>
        /// PV2 
        /// </summary>
        PriorPendingLocation_PV2=00181,
        AccommodationCode_PV2=00182,
        AdmitReason_PV2=00183,
        TransferReason_PV2=00184,
        PatientValuables_PV2=00185,
        PatientValuablesLocation_PV2=00186,
        VisitUserCode_PV2=00187,
        ExpectedAdmitDateTime_PV2=00188,
        ExpectedDischargeDateTime_PV2=00189,
        EstimatedLengthofInpatientStay_PV2=00711,
        ActualLengthofInpatientStay_PV2=00712,
        VisitDescription_PV2=00713,
        ReferralSourceCode_PV2=00714,
        PreviousServiceDate_PV2=00715,
        EmploymentIllnessRelatedIndicator_PV2=00716,
        PurgeStatusCode_PV2=00717,
        PurgeStatusDate_PV2=00718,
        SpecialProgramCode_PV2=00719,
        RetentionIndicator_PV2=00720,
        ExpectedNumberofInsurancePlans_PV2=00721,
        VisitPublicityCode_PV2=00722,
        VisitProtectionIndicator_PV2=00723,
        ClinicOrganizationName_PV2=00724,
        PatientStatusCode_PV2=00725,
        VisitPriorityCode_PV2=00726,
        PreviousTreatmentDate_PV2=00727,
        ExpectedDischargeDisposition_PV2=00728,
        SignatureonFileDate_PV2=00729,
        FirstSimilarIllnessDate_PV2=00730,
        PatientChargeAdjustmentCode_PV2=00731,
        RecurringServiceCode_PV2=00732,
        BillingMediaCode_PV2=00733,
        ExpectedSurgeryDateandTime_PV2=00734,
        MilitaryPartnershipCode_PV2=00735,
        MilitaryNonAvailabilityCode_PV2=00736,
        NewbornBabyIndicator_PV2=00737,
        BabyDetainedIndicator_PV2=00738,
        ModeofArrivalCode_PV2=01543,
        RecreationalDrugUseCode_PV2=01544,
        AdmissionLevelofCareCode_PV2=01545,
        PrecautionCode_PV2=01546,
        PatientConditionCode_PV2=01547,
        LivingWillCode_PV2=00759,
        OrganDonorCode_PV2=00760,
        AdvanceDirectiveCode_PV2=01548,
        PatientStatusEffectiveDate_PV2=01549,
        ExpectedLOAReturnDateTime_PV2=01550,

        /// <summary>
        /// IN1 
        /// </summary>
        SetID_IN1=00426,
        Insurance_PlanID_IN1=00368,
        InsuranceCompanyID_IN1=00428,
        InsuranceCompanyName_IN1=00429,
        InsuranceCompanyAddress_IN1=00430,
        InsuranceCoContactPerson_IN1=00431,
        InsuranceCoPhoneNumber_IN1=00432,
        GroupNumber_IN1=00433,
        GroupName_IN1=00434,
        InsuredGroupEmpID_IN1=00435,
        InsuredGroupEmpName_IN1=00436,
        PlanEffectiveDate_IN1=00437,
        PlanExpirationDate_IN1=00438,
        AuthorizationInformation_IN1=00439,
        PlanType_IN1=00440,
        NameofInsured_IN1=00441,
        InsuredRelationshiptoPatient=00442,
        InsuredDateofbirth=00443,
        InsuredAddress = 00444,
        AssigmentsofBenefits=00445,
        CoorinationofBenefits=00446,
        CoordinationofbenefitsPriority=00447,
        NoticeofAdmissionFlag=00448,
        NoticeofAdmissionDate=00449,
        ReportofeligibilityFlag_IN1=00450,
        ReportofeligibilityDate_IN1=00451,
        ReleaseInformationCode_IN1=00452,
        PreadmitCert_IN1=00453,
        VerificationDateTime_IN1 = 00454,
        VerificationBy_IN1 = 00455,
        TypeofAgreementCode_IN1=00456,
        BillingStatus_IN1 = 00457,
        LifetimeReserveDays_IN1 = 00458,
        DelayBeforeLRDays_IN1 = 00459,
        CompanyPlanCode_IN1 = 00460,
        PolicyNumber_IN1 = 00461,
        PolicyDeductible_IN1 = 00462,
        PolicyLimitAmount_IN1 = 00463,
        PolicyLimitDays_IN1 = 00464,
        RoomRateSemiPrivate_IN1=00465,
        RoomRatePrivate_IN1=00466,
        InsuredEmploymentStatus_IN1=00467,
        InsuredAdministrativeSex_IN1=00468,
        InsuredEmployerAddress_IN1=00469,
        VerificationStatus_IN1 = 00470,
        PriorInsurancePlanID_IN1=00471,
        CoverageType_IN1 = 01227,
        Handicap_IN1_NK1 = 00753,
        InsuredIDNumber_IN1 = 01230,
        SignatureCode_IN1 = 01854,
        SignatureCodeDate_IN1 = 01855,
        InsuredBirthPlace_IN1 = 01899,
        VIPIndicator_IN1=01852,
        /// <summary>
        /// DG1 
        /// </summary>
        SetID_DG1 = 00375,
        DiagnosisCodingMethod_DG1 = 00376,
        DiagnosisCode_DG1=00377,
        DiagnosisDescription_DG1=00378,
        DiagnosisDateTime_DG1=00379,
        DiagnosisType_DG1 = 00380,
        MajorDiagnosticCategory_DG1=00381,
        DiagnosticRelatedGroup_DG1=00382,
        DRGApprovalIndicator_DG1=00383,
        DRGGrouperReviewcode_DG1= 00384,
        OutlierType_DG1=00385,
        OutlierDays_DG1=00386,
        OutlierCost_DG1= 00387,
        GrouperversionandType_DG1=00388,
        DiagnosisPriority_DG1 =	00389,
        DiagnosisClinician_DG1=00390,
        DiagnosisClasification_DG1=00766,
        ConfidentialIndicator_DG1=00767,
        AttestationDateTime_DG1=00768,
        DiagnosisIdentifier=01850,
        DiagnosisActionCode_DG1 = 01894,
        /// <summary>
        /// ORC 
        /// </summary>
        OrderControl_ORC=00215,
        PlacerOrderNumber_ORC=00216,
        FillerOrderNumber_ORC=00217,
        PlacerGroupNumber_ORC=00218,
        OrderStatus_ORC=00219,
        ResponseFlag_ORC=00220,
        QuantityTiming_ORC_OBR_RXE_RXG=00221,
        Parent_ORC=00222,
        DateTimeofTransaction_ORC=00223,
        EnteredBy_ORC=00224,
        VerifiedBy_ORC=00225,
        OrderingProvider_ORC=00226,
        EntererLocation_ORC=00227,
        CallbackPhone_ORC=00228,
        OrderEffectiveDateTime_ORC=00229,
        OrderControlCodeReason_ORC=00230,
        EnteringOrganization_ORC=00231,
        EnteringDevice_ORC=00232,
        ActionBy_ORC=00233,
        AdvancedBeneficiaryNoticeCode_ORC=01310,
        OrderingFacilityName_ORC=01311,
        OrderingFacilityAddress_ORC=01312,
        OrderingFacilityPhoneNumber_ORC=01313,
        OrderingProviderAddress_ORC=01314,
        OrderStatusModifier_ORC=01473,
        /// <summary>
        /// OBR 
        /// </summary>
        SetID_OBR=00237,
        PlacerOrderNumber_OBR=00216,
        FillerOrderNumber_OBR=00217,
        UniversalServiceIdentifier_OBR=00238,
        Priority_OBR=00239,
        RequestedDateTime_OBR=00240,
        ObservationDateTime_OBR=00241,
        ObservationEndDateTime_OBR=00242,
        CollectionVolume_OBR=00243,
        CollectorIdentifier_OBR=00244,
        SpecimenActionCode_OBR=00245,
        DangerCode_OBR=00246,
        RelevantClinicalInformation_OBR=00247,
        SpecimenReceivedDateTime_OBR=00248,
        SpecimenSource_OBR=00249,
        OrderingProvider_OBR=00226,
        OrderCallbackPhoneNumber_OBR=00250,
        PlacerField1_OBR=00251,
        PlacerField2_OBR=00252,
        FillerField1m_OBR=00253,
        FillerField2m_OBR=00254,
        ResultsRptStatusChngDateTimem_OBR=00255,
        ChargetoPractice_OBR=00256,
        DiagnosticServSectID_OBR=00257,
        ResultStatus_OBR=00258,
        ParentResult_OBR=00259,
        //QuantityTiming_OBR=00221,
        ResultCopiesTo_OBR=00260,
        Parent_OBR=00222,
        TransportationMode_OBR=00262,
        ReasonforStudy_OBR=00263,
        PrincipalResultInterpreter_OBR=00264,
        AssistantResultInterpreter_OBR=00265,
        Technician_OBR=00266,
        Transcriptionist_OBR=00267,
        ScheduledDateTime_OBR=00268,
        NumberofSampleContainers_OBR=01028,
        TransportLogisticsofCollectedSample_OBR=01029,
        CollectorsComment_OBR=01030,
        TransportArrangementResponsibility_OBR=01031,
        TransportArranged_OBR=01032,
        EscortRequired_OBR=01033,
        PlannedPatientTransportComment_OBR=01034,
        ProcedureCode_OBR=00393,
        ProcedureCodeModifier_OBR=01316,
        PlacerSupplementalServiceInformation_OBR=01474,
        FillerSupplementalServiceInformation_OBR=01475,

        /// <summary>
        /// OBX 
        /// </summary>
        SetID_OBX,
        ValuetypeID_OBX,
        ObservationIdentifier_OBX,
        Observationvalue_OBX,
        Units_OBX,
        Referencerange_OBX,
        Abnormalflags_OBX,
        Observationresultstatus_OBX,
        DateTimeoftheobservation_OBX,
        /// <summary>
        /// ARQ     Turnos
        /// </summary>
        PlacerAppointmentID_ARQ	=00860,
        FillerAppointmentID_ARQ=00861,
        OccurrenceNumber=00862,
        PlacerGroupNumber_ARQ=	00863,
        ScheduleID_ARQ=	00864,
        RequestEventReason_ARQ=00865,
        AppointmentReason_ARQ=00866,
        AppointmentType_ARQ=00867,
        AppointmentDuration_ARQ=00868,
        AppointmentDurationUnits_ARQ=00869,
        RequestedStartDateTimeRange_ARQ=00870,
        Priority_ARQ=00871,
        RepeatingInterval_ARQ=00872,
        RepeatingIntervalDuration_ARQ=00873,
        PlacerContactPerson_ARQ=00874,
        PlacerContactPhoneNumber_ARQ=00875,
        PlacerContactAddress_ARQ=00876,
        PlacerContactLocation_ARQ=00877,
        EnteredByPerson_ARQ=00878,
        EnteredByPhoneNumber_ARQ=00879,
        EnteredByLocation_ARQ=00880,
        ParentPlacerAppointmentID_ARQ=00881,
        ParentFillerAppointmentID_ARQ=00882,
        PlacerOrderNumber_ARQ=00216,
        FillerOrderNumber_ARQ=00217,
        /// <summary>
        /// RQD     Requisition Detail
        /// </summary>
        RequisitionLineNumber_RQD=00275,
        ItemCodeInternal_RQD=00276,
        ItemCodeExternal_RQD=00277,
        HospitalItemCode_RQD=00278,
        RequisitionQuantity_RQD=00279,
        RequisitionUnitofMeasure_RQD=00280,
        DeptCostCenter_RQD=00281,
        ItemNaturalAccountCode_RQD=00282,
        DeliverToID_RQD=00283,
        DateNeeded_RQD=00284,
        /// <summary>
        /// RQ1     Requisition Detail
        /// </summary>
        AnticipatedPrice_RQ1=00285,
        ManufacturerIdentifier_RQ1=00286,
        ManufacturerCatalog_RQ1=00287,
        VendorID_RQ1=00288,
        VendorCatalog_RQ1=00289,
        Taxable_RQ1=00290,
        SubstituteAllowed_RQ1=00291,
        /// <summary>
        /// RXO     Pharmacy/Treatment Order
        /// </summary>
        RequestedGiveCode_RXO=00292,
        RequestedGiveAmountMinimum_RXO=00293,
        RequestedGiveAmountMaximum_RXO=00294,
        RequestedGiveUnits_RXO=00295,
        RequestedDosageForm_RXO=00296,
        ProvidersPharmacyTreatmentInstructions_RXO=00297,
        ProvidersAdministrationInstructions_RXO_RXE=00298,
        DeliverToLocation_RXO_RXE=00299,
        AllowSubstitutions_RXO=00300,
        RequestedDispenseCode_RXO=00301,
        RequestedDispenseAmount_RXO=00302,
        RequestedDispenseUnits_RXO=00303,
        NumberOfRefills_RXO_RXE=00304,
        OrderingProvidersDEANumber_RXO_RXE=00305,
        PharmacistTreatmentSuppliersVerifierID_RXO_RXE=00306,
        NeedsHumanReview_RXO_RXE_RXG_RXD=00307,
        RequestedGivePerTimeUnit_RXO=00308,
        RequestedGiveStrength_RXO=01121,
        RequestedGiveStrengthUnits_RXO=01122,
        Indication_RXO_RXD_RXG_RXA=01123,
        RequestedGiveRateAmount_RXO=01218,
        RequestedGiveRateUnits_RXO=01219,
        TotalDailyDose_RXO_RXE_RXD=00329,
        SupplementaryCode_RXO_RXC_RXD_RXE=01476,
        /// <summary>
        /// RXC      Pharmacy/Treatment Component Order
        /// </summary>
        RXComponentType_RXC=00313,
        ComponentCode_RXC=00314,
        ComponentAmount_RXC=00315,
        ComponentUnits_RXC=00316,
        ComponentStrength_RXC=01124,
        ComponentStrengthUnits_RXC=01125,
        //SupplementaryCode_RXC=01476,
        /// <summary>
        /// RXD      RXD - Pharmacy/Treatment Dispense
        /// </summary>
        //DispenseSubIDCounter_RXD=00334,
        DispenseGiveCode_RXD=00335,
        DateTimeDispensed_RXD=00336,
        ActualDispenseAmount_RXD=00337,
        ActualDispenseUnits_RXD=00338,
        ActualDosageForm_RXD=00339,
        PrescriptionNumber_RXD_RXE=00325,
        NumberofRefillsRemaining_RXD_RXE=00326,
        DispenseNotes_RXD=00340,
        DispensingProvider_RXD=00341,
        SubstitutionStatus_RXD_RXE_RXG=00322,
        //TotalDailyDose_RXD=00329,
        DispensetoLocation_RXD_RXG=01303,
        //NeedsHumanReview_RXD=00307,
        PharmacyTreatmentSupplierSpecialDispensingInstructions_RXD_RXE=00330,
        ActualStrength_RXD=01132,
        ActualStrengthUnit_RXD=01133,
        SubstanceLotNumber_RXD_RXG_RXA=01129,
        SubstanceExpirationDate_RXD_RXG_RXA=01130,
        SubstanceManufacturerName_RXD_RXG_RXA=01131,
        //Indication_RXD=01123,
        DispensePackageSize_RXD_RXE=01220,
        DispensePackageSizeUnit_RXD_RXE=01221,
        DispensePackageMethod_RXD_RXE=01222,
        //SupplementaryCode_RXD=01476,
        InitiatingLocation_RXD=01477,
        PackagingAssemblyLocation_RXD=01478,
         /// <summary>
        /// RXG - Pharmacy/Treatment Give
        /// </summary>
        GiveSubIDCounter_RXG_RXA=00342,
        DispenseSubIDCounter_RXG_RXD=00334,
        //QuantityTiming_RXG=00221,
        //GiveCode_RXG=00317,
       // GiveAmountMinimum_RXG=00318,
        //GiveAmountMaximum_RXG=00319,
        //GiveUnits_RXG=00320,
        //GiveDosageForm_RXG=00321,
        AdministrationNotes_RXG_RXA=00351,
        //SubstitutionStatus_RXG=00322,
        //DispensetoLocation_RXG=01303,
        //NeedsHumanReview_RXG=00307,
        PharmacyTreatmentSupplierSpecialAdministrationInstructions_RXG=00343,
        GivePerTimeUnit_RXG_RXE=00331,
        GiveRateAmount_RXG_RXE=00332,
        GiveRateUnits_RXG_RXE=00333,
        GiveStrength_RXG_RXE=01126,
        GiveStrengthUnits_RXG_RXE=01127,
        //SubstanceLotNumber_RXG=01129,
        //SubstanceExpirationDate_RXG=01130,
        //SubstanceManufacturerName_RXG=01131,
        //Indication_RXG=01123,
        /// <summary>
        /// RXE    PHARMAcy tratement encoded Order
        /// </summary>
        //QuantityTiming_RXE=00221,
        GiveCode_RXE_RXG=00317,
        GiveAmountMinimum_RXE_RXG=00318,
        GiveAmountMaximum_RXE_RXG=00319,
        GiveUnits_RXE_RXG=00320,
        GiveDosageForm_RXE_RXG=00321,
        //ProvidersAdministrationInstructions_RXE=00298,
        //DelivertoLocation_RXE=00299,
        //SubstitutionStatus_RXE=00322,
        DispenseAmount_RXE=00323,
        DispenseUnits_RXE=00324,
       // NumberofRefills_RXO_RXE=00304,
        //OrderingProvidersDEANumber_RXO_RXE=00305,
        //PharmacistTreatmentSuppliersVerifierID_RXO_RXE=00306,
        //PrescriptionNumber_RXE=00325,
        //NumberofRefillsRemaining_RXE=00326,
        NumberofRefillsDosesDispensed_RXE=00327,
        DTofMostRecentRefillorDoseDispensed_RXE=00328,
        //TotalDailyDose_RXE=00329,
        //NeedsHumanReview_RXE=00307,
        //PharmacyTreatmentSupplierSpecialDispensingInstructions_RXE= 00330,
        //GivePerTimeUnit_RXE=00331,
        //GiveRateAmount_RXE=00332,
        //GiveRateUnits_RXE=00333,
        //GiveStrength_RXE=01126,
        //GiveStrengthUnits_RXE=01127,
        GiveIndication_RXE=01128,
        //DispensePackageSize_RXE=01220,
        //DispensePackageSizeUnit_RXE=01221,
        //DispensePackageMethod_RXE=01222,
        //SupplementaryCode_RXE=01476,
        /// <summary>
        /// RXA    PHARMAcy tratement Administration
        /// </summary>
        //GiveSubIDCounter_RXA=00342,
        AdministrationSubIDCounter_RXA=00344,
        DateTimeStartofAdministration_RXA=00345,
        DateTimeEndofAdministration_RXA=00346,
        AdministeredCode_RXA=00347,
        AdministeredAmount_RXA=00348,
        AdministeredUnits_RXA=00349,
        AdministeredDosageForm_RXA=00350,
        //AdministrationNotes_RXA=00351,
        AdministeringProvider_RXA=00352,
        AdministeredatLocation_RXA=00353,
        AdministeredPerTimeUnit_RXA=00354,
        AdministeredStrength_RXA=01134,
        AdministeredStrengthUnits_RXA=01135,
        //SubstanceLotNumber_RXA=01129,
        //SubstanceExpirationDate_RXA=01130,
        //SubstanceManufacturerName_RXA=01131,
        SubstanceTreatmentRefusalReason_RXA=01136,
        //Indication_RXA=01123,
        CompletionStatus_RXA=01223,
        ActionCodeRXA_RXA=01224,
        SystemEntryDateTime_RXA=01225,

        /// <summary>
        /// SCH     Turnos
        /// </summary>
        PlacerAppointmentID_SCH=00860,
        FillerAppointmentID_SCH=00861,
        OccurrenceNumber_SCH=00862,
        PlacerGroupNumber_SCH=00218,
        ScheduleID_SCH=00864,
        EventReason_SCH=00883,
        AppointmentReason_SCH=00866,
        AppointmentType_SCH=00867,
        AppointmentDuration_SCH=00868,
        AppointmentDurationUnits_SCH=00869,
        AppointmentTimingQuantity_SCH=00884,
        PlacerContactPerson_SCH=00874,
        PlacerContactPhoneNumber_SCH=00875,
        PlacerContactAddress_SCH=00876,
        PlacerContactLocation_SCH=00877,
        FillerContactPerson_SCH=00885,
        FillerContactPhoneNumber_SCH=00886,
        FillerContactAddress_SCH=00887,
        FillerContactLocation_SCH=00888,
        EnteredbyPerson_SCH=00878,
        EnteredbyPhoneNumber_SCH=00879,
        EnteredbyLocation_SCH=00880,
        ParentPlacerAppointment_SCH=00881,
        ParentFillerAppointment_SCH=00882,
        FillerStatusCode_SCH=00889,
        PlacerOrderNumber_SCH=00216,
        FillerOrderNumber_SCH=00217,
        /// <summary>
        /// APR     Turnos
        /// </summary>
        TimeSelectionCriteria_APR=00908,
        ResourceSelectionCriteria_APR=00909,
        LocationSelectionCriteria_APR=00910,
        SlotSpacingCriteria_APR=00911,
        FillerOverrideCriteria_APR=00912,
        /// <summary>
        /// RGS     Turnos
        /// </summary>
        SetID_RGS=01203,
        SegmentActionCode_RGS=00763,
        ResourceGroupID_RGS=01204,
        /// <summary>
        /// AIG     Turnos
        /// </summary>
        SetID_AIG=00896,
        SegmentActionCode_AIG=00763,
        ResourceID_AIG=00897,
        ResourceType_AIG=00898,
        ResourceGroup_AIG=00899,
        ResourceQuantity_AIG=00900,
        ResourceQuantityUnits_AIG=00901,
        StartDateTime_AIG=01202,
        StartDateTimeOffset_AIG=00891,
        StartDateTimeOffsetUnits_AIG=00904,
        Duration_AIG=00905,
        DurationUnits_AIG=00906,
        AllowSubstitutionCode_AIG=00907,
        FillerStatusCode_AIG=00889,
        /// <summary>
        /// AIS     Turnos
        /// </summary>
        SetID_AIS=00890,
        SegmentActionCode_AIS=00763,
        UniversalServiceIdentifier_AIS=00238,
        StartDateTime_AIS=01202,
        StartDateTimeOffset_AIS=00891,
        StartDateTimeOffsetUnits_AIS=00892,
        Duration_AIS=00893,
        DurationUnits_AIS=00894,
        AllowSubstitutionCode_AIS=00895,
        FillerStatusCode_AIS=00889,
        PlacerSupplementalServiceInformation_AIS=01474,
        FillerSupplementalServiceInformation_AIS=01475,
        /// <summary>
        /// AIL     Turnos
        /// </summary>
        SetID_AIL=00902,
        SegmentActionCode_AIL=00763,
        LocationResourceID_AIL=00903,
        LocationType_AIL=00904,
        LocationGroup_AIL=00905,
        StartDateTime_AIL=01202,
        StartDateTimeOffset_AIL=00891,
        StartDateTimeOffsetUnits_AIL=00892,
        Duration_AIL=00893,
        DurationUnits_AIL=00894,
        AllowSubstitutionCode_AIL=00895,
        FillerStatusCode_AIL=00889,
        /// <summary>
        /// AIP  Turnos
        /// </summary>
        SetID_AIP=00906,
        SegmentActionCode_AIP=00763,
        PersonnelResourceID_AIP=00913,
        ResourceRol_AIP=00907,
        ResourceGroup_AIP=00899,
        StartDateTime_AIP=01202,
        StartDateTimeOffset_AIP=00891,
        StartDateTimeOffsetUnits_AIP=00892,
        Duration_AIP=00893,
        DurationUnits_AIP=00894,
        AllowSubstitutionCode_AIP=00895,
        FillerStatusCode_AIP=0889,
        /////////////////////************* CHAPTER 5 ************************/////////////////////////////////////
        /// <summary>
        /// DSP  Display Data
        /// </summary>
        SetID_DSP=00061,
        DisplayLevel_DSP=00062,
        DataLine_DSP=00063,
        LogicalBreakPoint_DSP=00064,
        ResultID_DSP=00065,
        /// <summary>
        /// QAK Query Acknowledgment
        /// </summary>
        QueryTag_QAK=00696,
        QueryResponseStatus_QAK=00708,
        MessageQueryName_QAK=01375,
        HitCount_QAK=01434,
        Thispayload_QAK=01622,
        Hitsremaining_QAK=01623,
        /// <summary>
        /// QID Query Identification
        /// </summary>
        QueryTag_QID=00696,
        MessageQueryName_QID=01375,
        /// <summary>
        /// QPD Query Parameter Definition
        /// </summary>
        MessageQueryName_QPD=01375,
        QueryTag_QPD=00696,
        UserParametersinsuccessivefields_QPD=01435,
        /// <summary>
        /// QRI  Query Response Instance
        /// </summary>
        CandidateConfidence_QRI=01436,
        MatchReasonCode_QRI=01437,
        AlgorithmDescriptor_QRI=01438,
        /// <summary>
        /// RCP - Response Control Parameter
        /// </summary>
        QueryPriority_RCP=00027,
        QuantityLimitedRequest_RCP=00031,
        ResponseModality_RCP=01440,
        ExecutionandDeliveryTime_RCP=01441,
        ModifyIndicator_RCP=01443,
        SortbyField_RCP=01624,
        Segmentgroupinclusion_RCP=01594,
        /// <summary>
        /// RDF - Table Row Definition
        /// </summary>
        NumberofColumnsperRow_RDF=00701,
        ColumnDescription_RDF=00702,
        /// <summary>
        /// RDT - Table Row Data
        /// </summary>
        ColumnValue_RDT=00703,
        /// <summary>
        /// EQL - Embedded Query Language
        /// </summary>
        QueryTag_EQL=00696,
        QueryResponseFormatCode_EQL=00697,
        EQLQueryName_EQL=00709,
        EQLQueryStatement_EQL=00710,
        /// <summary>
        /// ERQ - Event Reply Query
        /// </summary>
        QueryTag_ERQ=00696,
        EventIdentifier_ERQ=00706,
        InputParameterList_ERQ=00705,
        /// <summary>
        /// QRD - Original-Style Query Definition
        /// </summary>
        QueryDateTime_QRD=00025,
        QueryFormatCode_QRD=00026,
        QueryPriority_QRD=00027,
        QueryID_QRD=00028,
        DeferredResponseType_QRD=00029,
        DeferredResponseDateTime_QRD=00030,
        QuantityLimitedRequest_QRD=00031,
        WhoSubjectFilter_QRD=00032,
        WhatSubjectFilter_QRD=00033,
        WhatDepartmentDataCode_QRD=00034,
        WhatDataCodeValueQual_QRD=00035,
        QueryResultsLevel_QRD=00036,
        /// <summary>
        /// NTE - Notes and Comments
        /// </summary>
        SetID_NTE=00096,
        SourceOfComment=00097,
        Comment=00098,
        CommentType=01318,


    }
}
